package com.example.shiroplusdemo.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ：Anitaxiaofeng
 * @description：
 * @create 2018-01-13
 **/
@Data
@NoArgsConstructor
public class UserOnlineVO extends User implements Serializable {

    private static final long serialVersionID = 1L;

    private String sessionId;

    private String host;

    //session创建时间
    private Date startTime;

    //session最后交互时间
    private Date lastAccess;

    private long timeout;

    //session是否踢出
    private boolean sessionStatus = Boolean.FALSE;

    public UserOnlineVO(User user){
        super(user);
    }

}
